package com.tyk.bookstore.back.storage.model.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author tyk
 * @description 库存
 */
@Data
public class StockAddQuery {
    @NotNull
    @Schema(description = "仓库ID")
    @Min(1)
    private Long warehouseId;
    @NotNull
    @Schema(description = "书籍ID")
    @Min(1)
    private Long bookId;
    @NotNull
    @Schema(description = "库存数量")
    @Min(0)
    private Long num;
}
